package model

import "gorm.io/gorm"

// 用户表
type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(100)"`
	Password string `gorm:"type:varchar(100)"`
}

//用户和角色关联表

type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int(50)"`
	Rid int `gorm:"type:int(50)"`
}

// 角色表
type Role struct {
	gorm.Model
	Rolename string `gorm:"type:varchar(100)"`
}

// 角色和权限关联表
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int(50)"`
	Nid int `gorm:"type:int(50)"`
}

// 权限表
type Node struct {
	gorm.Model
	Nodename string `gorm:"type:varchar(100)"`
}

// 售后商品列表
type Post struct {
	gorm.Model
	Postname   string `gorm:"type:varchar(100)"`
	Postjia    int    `gorm:"type:int"`
	Postzhuang string `gorm:"type:varchar(100)"`
}

//售后订单

type Ass struct {
	gorm.Model
	Assbian string `gorm:"type:varchar(100)"`
	Asske   string `gorm:"type:varchar(100)"`
	Assdi   string `gorm:"type:varchar(100)"`
	Pid     int    `gorm:"type:int"`
}

// 展示列表
type List struct {
	Id        int
	Listbian  string
	Listke    string
	Listname  string
	Listzuang string
}
